home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3173 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  741 b 

  1. Path: ulysses.sax.de!robby
  2. From: robby@ulysses.sax.de (Robby Paehlig)
  3. Subject: SetRGB32() doesn't do what it should...
  4. Message-ID: <425.6611T1194T2896@ulysses.sax.de>
  5. Newsgroups: comp.sys.amiga.programmer
  6. X-Newsreader: THOR 2.21 (Amiga;UUCP)
  7. Date: Wed, 7 Feb 96 19:55:21 GMT
  8. Organization: a private site in Germany
  9.  
  10. Here are some lines, that should change color 8 of my Workbench to blue:
  11.  
  12. [...]
  13. if(GfxBase = (struct GfxBase *)(OpenLibrary("graphics.library", 39L))) {
  14.     if(wb = LockPubScreen("Workbench")) {
  15.         SetRGB32(&(wb->ViewPort), 8, 0x0ul, 0x0ul, 0xFFul);
  16. [...]
  17.  
  18. Well, the color changes -- not to blue, but to black! What I'm doing wrong?
  19.  
  20. I'm using a 256 color WB (PiccoloSD64).
  21.  
  22. --
  23. Robby   //
  24.       \X/ robby@ulysses.sax.de
  25.